package com.rich.quartz;

import com.rich.common.entity.TbHouse;
import com.rich.common.util.HtmlParseUtil;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import org.junit.jupiter.api.Test;
import org.springframework.beans.BeanUtils;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.test.context.SpringBootTest;

import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList;

/**
 * @author minicoco
 * @version 1.0
 * @date 2021/8/22 20:31
 */

public class JsoupDemo {

    @Test
    public void test01(){

        int page = 3;
//        String type = "zufang";
        String type = "ershoufang";

        //获取页面信息
        Document document= HtmlParseUtil.getDocument("https://bj.5i5j.com/"+type+"/n"+page);//双引号里面填写网址

        System.out.println("测试");



        HtmlParseUtil.parseZuFangHtml(document);
    }

    @Test
    public void test02(){
        int a= 10;
        Integer b =10;
        System.out.println(a == b);
        System.out.println(b.equals(a));

        Integer c=10;
        System.out.println(b == c);

        Integer d = 256;
        int e = 256;
        System.out.println(d == e);
    }


}
